import java.util.Arrays;

public class Container {

	private Object[] objects = new Object[0];

	public Object[] getObject() {
		return objects;
	}

	public void setObject(Object[] object) {
		this.objects = object;
	}

	public void add(Object object) {
		setObject(Arrays.copyOf(getObject(), getObject().length + 1));
		getObject()[getObject().length - 1] = object;
	}

	@Override
	public String toString() {
		return Arrays.toString(getObject());
	}

}
